import request from '@/utils/request_ry.js'

// 查询发票照片列表
export function listJyInvoicePhoto(query) {
  return request({
    url: '/jy/jyInvoicePhoto/list',
    method: 'get',
    params: query
  })
}

// 查询发票照片详细
export function getJyInvoicePhoto(id) {
  return request({
    url: '/jy/jyInvoicePhoto/' + id,
    method: 'get'
  })
}

// 新增发票照片
export function addJyInvoicePhoto(data) {
  return request({
    url: '/jy/jyInvoicePhoto',
    method: 'post',
    data: data,
	loading: true
  })
}

// 修改发票照片
export function updateJyInvoicePhoto(data) {
  return request({
    url: '/jy/jyInvoicePhoto',
    method: 'put',
    data: data,
	loading: true
  })
}

// 删除发票照片
export function delJyInvoicePhoto(id) {
  return request({
    url: '/jy/jyInvoicePhoto/' + id,
    method: 'delete'
  })
}
